package com.inno.subject.common.utils;

import com.inno.subject.common.constant.RedisKeyPrefix;

import java.security.PublicKey;

/**
 * @author shenzeyang
 */
public class RedisKeyBuilder {

    /**
     * 构建题目详情缓存key
     */
    public static String builderSubjectDetailKey(Long subjectId){
        return RedisKeyPrefix.SUBJECT_DETAIL_KEY + subjectId;
    }

    public static String builderSubjectDaily() {
        return RedisKeyPrefix.SUBJECT_DAILY_KEY;
    }

    public static String builderSubjectPageKey(Integer page , Integer pageSize){
        return RedisKeyPrefix.SUBJECT_PAGE_KEY + page + ":" + pageSize;
    }
}
